﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace HuiZe.education.View.Ethan
{
    /// <summary>
    /// PART_Media_Flash.xaml 的交互逻辑
    /// </summary>
    public partial class PART_Media_Html : UserControl
    {
        public PART_Media_Html()
        {
            InitializeComponent();
            PART_WebBrowser.ScriptErrorsSuppressed = true;
        }

        public void SetUrl(string _url)
        {
            PART_WebBrowser.Navigate(new Uri(_url, UriKind.RelativeOrAbsolute));
            //PART_WebBrowser.Url = new Uri(_path, UriKind.RelativeOrAbsolute);
            //string _html = $"<iframe data-v-5f534b4b='' src='https://ow365.cn/?i=28004&amp;ssl=1&amp;n=5&amp;furl={_url}' class='course-iframe' style='background-color: rgb(255, 255, 255);'  width='100%' height='100%' frameborder='0'></iframe>";
            //PART_WebBrowser.DocumentText = _html;
        }

        public void Reset()
        {
            PART_WebBrowser.Navigate("about:blank");
        }
    }
}
